package com.itheima.testjian;

import com.itheima.test01.Student;
import com.itheima.test01.StudentZheng;

import java.util.Scanner;

public class CutString {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生信息：");
        String s = sc.nextLine();

        String[] sArr = s.split("，");
        StudentZheng stu = new StudentZheng(sArr[0],sArr[1]);
        System.out.println(stu.getName() + "...." + stu.getAge());
    }
}
